import common from "./common";

export default {

    addCommands() {
        Cypress.Commands.add("clickButton",
            {
                prevSubject: 'optional'
            },
            (subject: Cypress.Chainable<any>, label: string): Cypress.Chainable<any> => {
                return common.selectNode(subject, "button:contains('" + label + "')").click().wait(1000);
            });
    }

}
